﻿using System;
class ReverseString
{
    static void Main()
    {
        Console.Write("please input string: ");
        string str = Console.ReadLine();
        char[] arrChars = new char[str.Length];
        for (int i = 0; i < arrChars.Length; i++)
        {
            arrChars[arrChars.Length - i - 1] = str[i];
        }
        Console.Write("reversed string is: ");
        for (int i = 0; i < arrChars.Length; i++)
        {
            Console.Write(arrChars[i]);
        }
        Console.ReadLine();
    }
}

